<{include file="top.html" }>
</head>
<body>

<header><a class="left_link" href="javascript:void(0);"></a>我的发稿</header>
    <{if $list}>
        <div class="xy-panel-content" style="bottom:0;">
            <div class="xy-row vDirectionRow">
                <ul class="article_box">
                    <{include file="User/articleMore.html" }>
                </ul>
            </div>
        </div>
    <{else}>
        <div class="none-box">
            <span class="press-icon"></span>
            <dl>您还没有发布任何文章</dl>
            <!--<div class="ui-button ui-button-2">
                <a class="" href="javascript:void(0);">跟大家分享你的生活吧</a>
            </div>-->
        </div>
    <{/if}>
<{include file="signBody.html"}>

</body>
</html>
<script src="<{$preStaticUrl}>Wap/js/flexible.js"></script>
<script type="text/javascript">

    //拖动加载
    var  flagData  =  true;
    var  flagAjax  =  true;
    var  page      =  1;
    //加载
    function  load_more(postData){

        if(!  flagAjax){
            return  false;
        }
        flagAjax  =  false;
        loadObj = layer.load(2);
        $.post("<{u('Article/myArticleMore')}>",postData  ,  function(data){
            layer.close(loadObj);
            flagAjax  =  true;
            if(data.data)  {
                $(".article_box").append(data.dataHTML);
                page++;
            }  else  {
                flagData  =  false;
            }
        },'json');
    }
    var  tmp_scroll  =  0;
    //拖动加载
    function  scroll_load(postData){
        if  (tmp_scroll  ==  $(window).height()  +  $(window).scrollTop())  {
            return;
        }
        tmp_scroll  =  $(window).height()  +  $(window).scrollTop();
        var  jia_scroll  =  $(document).height()  -  ($(window).height()  +  $(window).scrollTop());
        if  (jia_scroll  <  100  &&  flagData)  {
            load_more(postData);
        }
    }
    $(window).scroll(function(){
        scroll_load({p:page,pos:"articleList"});
    });

</script>